package com.bitrate.dagger.server.websocket.handler;

import javax.annotation.Resource;
import org.springframework.beans.factory.InitializingBean;

/**
 * 策略抽象类,系统初始化加载
 */
public abstract class AbstractStrategyHandler implements WebSocketStrategyHandler, InitializingBean {

	@Resource
	private WebSocketStrategyContext strategyContext;

	@Override
	public void afterPropertiesSet() {
		strategyContext.regisiter(this);
	}

}
